<template>
    <div>

    </div>
</template>

<script>
    import {appid} from "../../assets/captcha";

    export default {
        name: "passwordCaptcha",
        // props:{
        //     isShow:{
        //         type:Boolean
        //     }
        // },
        methods:{
            callbackName(res) {
                this.$emit("callbackName",res)
                this.$emit('getCaptcha',res);
            },
            show(){
                this.captcha_obj.show();
            },
        },
        data(){
            return{
                appid:appid,
                captcha_obj:null
            }
        },
        mounted() {
            this.captcha_obj = new TencentCaptcha(this.appid, this.callbackName);
        }
    }
</script>

<style scoped>

</style>
